package mediatheque.controller;

import mediatheque.model.DiversModel;
import mediatheque.model.MediathequeModel;
import mediatheque.view.DiversView;

public class DiversController extends DocumentController {
	
	public DiversController(MediathequeModel model, final DiversView view) {
		this(model, view, null);		
	}
	
	public DiversController(MediathequeModel model, final DiversView view, DiversModel divers) {
		super(model, view, divers);
	}

	protected void enregistrer() {
		if(document == null){
			document = new DiversModel();
			model.ajouterDocument(document.getIdentifiant(), (DiversModel)document);
		}
	
		super.enregistrer();
	}

	
	
}
